package edu.cuit.avatar.loop;

public class BreakMultiLoop {
    public static void main(String[] args) {
        int count = 0;
        level1: for (int i = 1; i <= 100; i++){
            level2: for(int j = 1; j <= 100; j++){
                for(int k = 1; k <= 100; k++){
                    if(k == 10)
                        break level1; //跳出k所在循环
                    count++;
                }
            }
        }

        System.out.println(count);
    }
}
